%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% TempLaTeX v2.0
%% 
%% Ramon Casero <rcasero@gmail.com>
%%
%% This library is free software; you can redistribute it and/or
%% modify it under the terms of the GNU Lesser General Public
%% License as published by the Free Software Foundation; either
%% version 2.1 of the License, or (at your option) any later version.
%%
%% This library is distributed in the hope that it will be useful,
%% but WITHOUT ANY WARRANTY; without even the implied warranty of
%% MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
%% Lesser General Public License for more details.
%%
%% You should have received a copy of the GNU Lesser General Public
%% License along with this library; if not, write to the Free Software
%% Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  USA
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%
%% Dependencies:
%%
%%   eurosym (texlive-fonts-recommended)
%%   aeguill (texlive-lang-french)
%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% PREAMBLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% DOCUMENT CLASS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\documentclass[               %% See README 2.1. Document class
english,%                     %% Document's main language
12pt,%                        %% Font size
twoside,%                     %% For double-side documents
a4paper%                      %% Paper size
]{article}%

%% FONTS AND SYMBOLS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{aeguill}          %% Font type (aeguill, times). See
                              %% README 2.3. Fonts

\usepackage[T1]{fontenc}      %% This is needed to display characters
                              %% like á, ö, ñ, etc... in the compiled
                              %% document

\usepackage{ucs}              %% Unicode support

\usepackage[utf8x]{inputenc}  %% This is needed to use source files
                              %% with characters like á, ö...
                              %% instead of \'a, \"o...

\usepackage[right]{eurosym}   %% See README 2.12. Style of the euro
                              %% symbol (€) and 3.20. Write a euro
                              %% symbol (€)

%% LANGUAGE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{babel}            %% To ease things for LaTeX when
                              %% documents are not written in English
                              %% (hyphenation, spell check, etc).

%% FORMAT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{setspace}         %% See README 2.4. Spacing
\onehalfspacing

\usepackage{multicol}         %% See README 2.5. Number of columns

\usepackage[Lenny]{fncychap}  %% See README 2.6. Fancy chapters

\usepackage{fancyhdr}         %% Fancy footers and headers

\usepackage{lastpage}         %% \pageref{LastPage}: Total number of pages

\usepackage{anysize}          %% See README 2.8. Margins

\usepackage{ulem}             %% See README 3.26. Underline, cross
\normalem                     %% out, ... text


%% GRAPHICS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[pdftex]{graphicx} %% Improved figures package through
                              %% \includegraphics

\usepackage{psfrag}           %% See README 3.1. Add a formula or any
                              %% other fancy stuff to an eps figure

\usepackage{pdflscape}        %% See README 3.2. Rotate text, figures,
                              %% tables and captions

\usepackage{rotating}         %% See README 3.2. Rotate text, figures,
                              %% tables and captions

\usepackage{subfig}           %% See README 3.3. Multiple subfigures
                              %% in a figure
%%\usepackage[%                
%%dvipsnames%                 %% Named model (enable or disable)
%%usenames,%                  %% Load or not all named colours
%%]{color, colortbl}          %% See README 3.7. Use colours in text
%%                            %% and tables

\graphicspath{{./figures/}}   %% Search "figures" directory when
                              %% looking for figures

%% TABLES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{array}            %% Extends the LaTeX2e array, tabular and
                              %% tabular* environments

\usepackage{delarray}         %% See REAME 3.8. Create an array
                              %% surrounded by parentheses

\usepackage{longtable}        %% See README 3.9. Tables longer than
                              %% one page

%%\usepackage{ltxtable}       %% See README 3.10 Fixed width tables

\usepackage{tabularx}         %% See README 3.10 Fixed width tables

\usepackage{multirow}         %% See README 3.29. Merge rows in a
                              %% tabular

%% INDEX ( see document's body for index section ) %%%%%%%%%%%%%%%%%%%%%%%%

%%\usepackage{index}
%%\newindex{default}{idx}{ind}{Index}
%%\newindex{sec}{adx}{and}{Second Index's title}
%%\newindex{thi}{bdx}{bnd}{Third Index's title}

%% MATHS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage{amsmath}          %% AMS mathematical package

\usepackage{amssymb}          %% More mathematical symbols

\usepackage{theorem}          %% For theorems, definitions, etc

%% LINKS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\usepackage[%
numbers,%
sort&compress%
]{natbib}                     %% plainnat, abbrvnat and unsrtnat styles

\usepackage[%
pdftex,%
pdfusetitle,%                 %% Get author and title info from title commands
bookmarks=true,%              %% Create or not pdf bookmarks
linktocpage=true,%            %% Link page numbers or whole text in TOC
pdfpagemode=UseOutlines,%     %% Opening mode in Acrobat Reader
breaklinks=true,%             %% Break long URLs into different lines
colorlinks=true,%             %% Box around hyperlinks, or coloured ones
urlcolor=blue,%               %%    URL hyperlinks
linkcolor=black,%             %%    internal links
anchorcolor=black,%           %%    anchor text
citecolor=black,%             %%    bibliography citations
filecolor=black,%             %%    local files
menucolor=black,%             %%    Acrobat menu items
]{hyperref}                   %% See README 2.11. Format of hyperlynks
                              %% (colour, boxed or not, etc), 3.11. Add
                              %% hyperlynks, 3.12. Contextual cross
                              %% references and 3.13. PDF forms

\usepackage{hypernat}         %% Combine hyperref and natbib

%% INPUT FILES %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\input{def}                   %% See README 3.17. Create new commands
                              %% and macros

%% FILES TO COMPILE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\includeonly{}              %% See README 3.16. Compile only part of
                              %% a big document


%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%% BODY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%% To introduce PDF meta information in the document about the
%% document's main subject, and keywords

\hypersetup{%  
pdfsubject  = {},%
pdfkeywords = {},%
pdfcreator  = {TempLaTeX v2.0},%
pdfproducer = {pdflatex}%
}

\begin{document}

\pagenumbering{arabic}

%% TITLE %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\author{John Doe}
\title{This is the title}
\date{\today}
\maketitle

%% ABSTRACT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\abstract
%%\addcontentsline{toc}{section}{Abstract}

%% TABLES OF CONTENTS %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\tableofcontents

%%\addcontentsline{toc}{section}{List of Figures}
%%\listoffigures

%%\addcontentsline{toc}{section}{List of Tables}
%%\listoftables

%% DOCUMENT %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

\section{Document body}

%% APPENDIX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\appendix

%% BIBLIOGRAPHY %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\bibliographystyle{unsrtnat}
%%\bibliography{biblio}
%%\nocite{*}
%%\addcontentsline{toc}{section}{Bibliography}

%% INDEX %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%

%%\addcontentsline{toc}{section}{Index}
%%\printindex
%%\addcontentsline{toc}{section}{Second Index}
%%\printindex[sec]
%%\addcontentsline{toc}{section}{Third Index}
%%\printindex[thi]

\end{document}
